﻿@using ar.com.juanpabloibanez.MVC.PagerHelper.Helpers
@using ar.com.juanpabloibanez.Samples.ViewModels
@model SearchProducViewModel

<table>
    <thead>
    <tr>
        <th>Name</th>
        <th>Price</th>
        <th>Active</th>
        <th>Action</th>
    </tr>
    </thead>
    <tbody>
    @foreach (var product in Model.ListOfProducts)
    {
        <tr>
            <td>@product.Name</td>
            <td>@product.Price</td>
            <td>@product.Active</td>
            <td><button name="Delete" value="@product.Id" type="submit" class="deleteButton">Delete</button></td>
        </tr>
    }
    </tbody>
</table>
@Html.Pager(Model.PagerViewModel)